package sk.upjs.ics.fca.concepts;

import java.util.List;

/**
 * Trieda, ktora reprezentuje koncept, ktory pozostava z extentu a intentu
 * (uzavretych mnozin)
 * 
 * @author Patrik Mihalcin
 */
public class Concept {

	private List<Double> extent;
	private List<Double> intent;

	/**
	 * Konstruktor akceptuje uzavrete mnoziny - extent a intent
	 * 
	 * @param extent
	 * @param intent
	 */
	public Concept(List<Double> extent, List<Double> intent) {
		this.extent = extent;
		this.intent = intent;
	}

	/**
	 * Vrati extent
	 * 
	 * @return extent
	 */
	public List<Double> getExtent() {
		return extent;
	}

	/**
	 * Vrati intent
	 * 
	 * @return intent
	 */
	public List<Double> getIntent() {
		return intent;
	}

	/**
	 * Vrati string reprezentaciu konceptu
	 */
	@Override
	public String toString() {
		return "{" + extent.toString() + ", " + intent.toString() + "}";
	}
}